package com.shop.car.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.car.domain.ShopCar;
import com.shop.car.domain.ShopCarDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：作者姓名
 * @Package：com.shop.car.mapper
 * @Project：Shop
 * @name：ShopCarMapper
 * @Date：2024/6/21 18:33
*/
@Mapper
public interface ShopCarMapper {
    ShopCar findShopCarByUserId(Long userId);

    List<ShopCarDetails> findShopCarDetailByShopId(Long carId);

    ShopCar FindShopCarList(Long userId);

    Integer ShopCarAdd(ShopCar shopCar);

    void insertShopCarDetail(ShopCarDetails skuInfo);

    ShopCarDetails FindShopCarDetailsBySkuIdAndShopCarId(@Param("carId") Long carId, @Param("skuId") Long skuId);

    void ShopCarDetailsAdd(ShopCarDetails skuInfo);

    void ShopCarDeatilsUpdate(@Param("detailsId") Long detailsId, @Param("detailsCount") Long detailsCount);

    ShopCar ShopCarList(Long userId);

    void ShopcarDetailsDelete(Long detailsId);

    void ShopCarDelete(Long carId);
}
